<project-header class="top-header"></project-header>
  <project-page>

  <!-- Middle section -->
  <div class="middle-section">
    <div id="scrollable-content" class="middle-container has-scroll">
      <div class="middle-header header-light">
        <div class="container-fluid">
          <div class="page-header page-header-bleed-right page-header-bleed-left">
            <h1>{{'ImageStreams' | translate}}</h1>
          </div>
          <alerts alerts="alerts"></alerts>
          <div ng-if="!renderOptions.showGetStarted" class="row data-toolbar">
            <div class="col-sm-7">
              <project-filter></project-filter>
            </div>
          </div>
        </div>
      </div><!-- /middle-header-->
      <div class="middle-content">
        <div class="container-fluid">
          <div class="row">
            <div class="col-md-12 gutter-top">
              <table class="table table-bordered table-hover table-mobile">
                <thead>
                  <tr>
                    <th>{{'Name' | translate}}</th>
                    <th>{{'DockerRepo' | translate}}</th>
                    <th>{{'Tags' | translate}}</th>
                    <th>{{'Updated' | translate}}</th>
                  </tr>
                </thead>
                <tbody ng-if="(imageStreams | hashSize) == 0">
                  <tr><td colspan="4"><em>{{emptyMessage}}</em></td></tr>
                </tbody>
                <tbody ng-repeat="imageStream in imageStreams | orderObjectsByDate : true">
                  <tr>
                    <td data-title="Name"><a href="{{imageStream | navigateResourceURL}}">{{imageStream.metadata.name}}</a></td>
                    <td data-title="Docker Repo">
                      <span ng-if="!imageStream.status.dockerImageRepository && !imageStream.spec.dockerImageRepository"><em>{{'unknown' | translate}}</em></span>
                      <span ng-if="imageStream.status.dockerImageRepository || imageStream.spec.dockerImageRepository" class="word-break">{{imageStream.status.dockerImageRepository || imageStream.spec.dockerImageRepository}}</span>
                    </td>
                    <td data-title="Tags">
                      <span ng-if="!imageStream.status.tags.length"><em>{{'none' | translate}}</em></span>
                      <span ng-repeat="tag in imageStream.status.tags | limitTo: 4">{{tag.tag}}<span ng-if="!$last">,
                      </span></span><span ng-if="imageStream.status.tags.length === 5">,
                        {{imageStream.status.tags[4].tag}}</span><span ng-if="imageStream.status.tags.length > 5">,
                        and {{imageStream.status.tags.length - 4}} others</span>
                    </td>
                    <td data-title="Updated"><relative-timestamp timestamp="imageStream | imageStreamLastUpdated"></relative-timestamp></td>
                  </tr>
                </tbody>
              </table>
            </div><!-- /col-* -->
          </div>
        </div>
      </div><!-- /middle-content -->
    </div><!-- /middle-container -->
  </div><!-- /middle-section -->
  </project-page>
